package com.personalblog.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author jxau_scf
 * @date 2021/3/22 - 13:25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment implements Serializable {
    /**
     * 实体类实现序列化接口
     */
    private static final long serialVersionUID = 1L;

    private Integer commentId;
    private String commentAvatar;
    private String commentContent;
    private String commentEmail;
    private String commentNickName;
    private Date commentCreateTime;
    private Boolean adminComment;
    private Comment parentComment;
    private Blog blog;

    private Integer parentCommentId;
    private String parentCommentNickName;
    //回复评论
    private List<Comment> replyComments = new ArrayList<>();
//    private List<Comment> replyComments;


}
